/* index.module.css */
:root {
  /* 颜色变量 */
  --primary-bg: rgb(50, 50, 50);
  --secondary-bg: rgb(70, 70, 70);
  --card-bg: rgb(60, 60, 60);
  --accent-color: #646cff;
  --accent-hover: #535bf2;
  --text-primary: rgba(255, 255, 255, 0.87);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --divider-color: rgba(255, 255, 255, 0.12);
  --success-color: #52c41a;
  --error-color: #ff4d4f;
  --warning-color: #faad14;
}

.gameInfoContainer {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

/* 游戏头部信息 */
.gameHeader {
  margin-bottom: 32px;
  align-items: flex-start;
}

.gameCover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--secondary-bg);
}

.gameCover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gameCover .ant-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.gameActions {
  margin-top: 20px;
}

.gameActions .ant-btn-primary {
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.gameActions .ant-btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 108, 255, 0.4);
}

.actionButtons {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.actionButtons .ant-btn {
  width: 40px;
  height: 40px;
  font-size: 16px;
  color: var(--text-primary);
  border-color: var(--divider-color);
  background-color: var(--secondary-bg);
  transition: all 0.2s ease;
}

.actionButtons .ant-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
  background-color: var(--secondary-bg);
}

.actionButtons .ant-btn.favorited {
  color: var(--error-color);
  border-color: var(--error-color);
  background-color: rgba(255, 77, 79, 0.15);
}

/* 游戏元信息 */
.gameMeta {
  padding: 0 20px;
}

.gameMeta .ant-typography {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.gameRating {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.gameRating .ant-rate {
  font-size: 20px;
  color: var(--warning-color);
}

.gameRating .ant-rate .ant-rate-star {
  margin-right: 4px;
}

.gameRating .ant-typography {
  color: var(--text-secondary);
}

.gameTags {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gameTags .ant-tag {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  background-color: var(--secondary-bg);
  border-color: var(--divider-color);
  color: var(--text-primary);
}

/* 游戏统计信息 */
.gameStats {
  margin-top: 24px;
}

.gameStats .ant-card {
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background-color: var(--secondary-bg);
  border-color: var(--divider-color);
}

.gameStats .ant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.gameStats .ant-statistic-title {
  font-size: 14px;
  color: var(--text-secondary);
}

.gameStats .ant-statistic-content {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 价格信息 */
.gamePricing {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--secondary-bg) 0%,
    var(--card-bg) 100%
  );
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--divider-color);
}

.originalPrice {
  font-size: 18px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.discountedPrice {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discountedPrice .ant-typography {
  color: var(--error-color);
  font-weight: 600;
}

.discountedPrice .ant-tag {
  font-size: 14px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  background-color: var(--error-color);
  color: white;
}

/* 标签页内容 */
.gameDetailTabs {
  margin-top: 32px;
}

.gameDetailTabs .ant-tabs-nav {
  margin-bottom: 24px;
}

.gameDetailTabs .ant-tabs-tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.gameDetailTabs .ant-tabs-tab-active {
  color: var(--accent-color);
}

.gameDetailTabs .ant-tabs-ink-bar {
  height: 3px;
  background: var(--accent-color);
}

.gameDetailTabs .ant-tabs-content {
  color: var(--text-primary);
}

/* 轮播图样式 */
.displayImages .ant-carousel .slick-dots li button {
  background: var(--accent-color);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.displayImages .ant-carousel .slick-dots li.slick-active button {
  opacity: 1;
  width: 12px;
  height: 12px;
}

.displayImages .ant-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.systemRequirementsContainer {
  display: flex;
}

/* 系统需求列表 */
.systemRequirements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.systemRequirements li {
  padding: 12px 0;
  border-bottom: 1px solid var(--divider-color);
  display: flex;
}

.systemRequirements li:last-child {
  border-bottom: none;
}

.systemRequirements .ant-typography-strong {
  min-width: 120px;
  color: var(--text-primary);
}

.systemRequirements .ant-typography {
  color: var(--text-secondary);
}
/* 游戏评论区 - 与现有样式变量匹配 */
.game-comments {
  padding: 24px;
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--divider-color);
  margin-top: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider-color);
}

.game-comments-title .anticon {
  color: var(--warning-color);
}

.comments-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: normal;
  margin-left: 4px;
}

/* 评论列表 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 评论卡片 */
.comment-card {
  padding: 16px;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.comment-card:hover {
  background-color: rgba(70, 70, 80, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 评论头部 */
.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--divider-color);
}

.comment-user {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.username {
  font-weight: 500;
  color: var(--text-primary);
}

.rating {
  font-size: 14px;
}

.rating .ant-rate-star {
  margin-right: 2px;
  color: var(--warning-color);
}

.comment-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 评论内容 */
.comment-content {
  padding-left: 52px;
  color: var(--text-primary);
  line-height: 1.6;
  opacity: 0.9;
}

/* 无评论状态 */
.no-comments {
  padding: 24px 0;
  text-align: center;
}

.no-comments .ant-empty-description {
  color: var(--text-secondary);
}
/* 响应式设计 */
@media (max-width: 992px) {
  .gameInfoContainer {
    padding: 20px;
  }

  .gameHeader {
    flex-direction: column;
  }

  .gameCover {
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .gameMeta {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .gamePricing {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
  }

  .gameStats .ant-col {
    margin-bottom: 16px;
  }

  .gameDetailTabs .ant-tabs-tab {
    padding: 8px 16px;
    font-size: 14px;
  }

  .game-comments {
    padding: 16px;
  }

  .comment-header {
    flex-wrap: wrap;
  }

  .comment-date {
    width: 100%;
    margin-top: 4px;
    padding-left: 52px;
  }
}

@media (max-width: 576px) {
  .gameInfoContainer {
    padding: 16px;
    border-radius: 8px;
  }

  .gameActions .ant-btn-primary {
    height: 44px;
    font-size: 15px;
  }

  .actionButtons .ant-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .gameRating .ant-rate {
    font-size: 18px;
  }

  .gameStats .ant-statistic-content {
    font-size: 18px;
  }

  .comment-content {
    padding-left: 0;
    margin-top: 12px;
  }

  .comment-card {
    padding: 12px;
  }
}

/* 覆盖Ant Design默认样式 */
.ant-divider {
  border-color: var(--divider-color);
}

.ant-carousel .slick-dots li button {
  background: var(--text-secondary);
}

.ant-carousel .slick-dots li.slick-active button {
  background: var(--accent-color);
}

/* 游戏评论区 - 同步帖子详情页样式 */
.game-comments {
  padding: 20px;
  background-color: rgba(40, 40, 40, 0.8);
  border-radius: 6px;
  border: 1px solid #444;
  margin-top: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-comments-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.comments-count {
  font-size: 16px;
  color: #aaa;
  font-weight: normal;
  margin-left: 4px;
}

/* 评论列表 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 单个评论项 */
.comment-card {
  padding: 15px;
  background-color: rgba(60, 60, 60, 0.6);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s;
}

.comment-card:hover {
  background-color: rgba(70, 70, 70, 0.8);
  transform: translateX(2px);
}

.comment-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #1890ff;
  border-radius: 3px 0 0 3px;
}

/* 评论头部 */
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #1890ff;
}

.username {
  font-weight: 500;
  color: #fff;
  margin-right: auto;
}

.comment-date {
  font-size: 12px;
  color: #aaa;
}

/* 评论内容 */
.comment-content {
  margin: 0;
  padding-left: 46px;
  color: #ddd;
  line-height: 1.5;
}

/* 无评论状态 */
.no-comments {
  text-align: center;
  color: #777;
  padding: 20px 0;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .game-comments {
    padding: 16px;
  }

  .comment-header {
    flex-wrap: wrap;
  }
}
